import Cookies from 'js-cookie'

const TokenKey = 'hr_admin_token'
const TimeKey = 'hr_time'

// token
export const getToken = () => Cookies.get(TokenKey)
export const setToken = token => Cookies.set(TokenKey, token)
export const removeToken = () => Cookies.remove(TokenKey)

// 时间戳
export const getTime = () => Cookies.get(TimeKey)
export const setTime = () => Cookies.set(TimeKey, Date.now())
export const removeTime = () => Cookies.remove(TimeKey)
